let App = getApp();
Page({
  data: {
    lists:[],
  },
  onLoad () {
    let defaultCar = wx.getStorageSync('defaultCar')
    this.setData({ defaultCar })
    this.getList()
  },
  getList () {
    wx.showNavigationBarLoading()
    let { defaultCar } = this.data
    let params = {
      buyerCarId: defaultCar.carId
    }
    App.HttpService.instructions(params).then(res => {
      let data = res.data.data
      this.setData({lists: data})
      wx.hideNavigationBarLoading()
    }).catch(e => {
      wx.hideNavigationBarLoading()
    })
  }
})